import http from '@/plugins/http/index';
// 分页查询微信我的订单信息
export const queryOrderListApi = params => {
	return http.post(`/lt-order/query_wxself_order_by_page.do`, params);
};

//多条件查询课程
export const selectRankingListAPI = params => {
	return http.post(`/lt-order/wechat/rankList/logonless/selectRankListByPage.do`, params).then(res => res);
};

//分页查询最新活动
export const selectActivityByPage = params => {
	return http.post(`/lt-order/wechat/logonless/selectActivitiesByPage.do`, params);
};

//入口判断产品相关信息targetType 1.课程 2.会员 3.专属不调用该接口
export const payLessonInfo = params => {
	return http.get(`/lt-order/payLessonInfo.do`, params, { method: 'GET' }).then(res => res);
};

//下单
export const addOrderAPI = params => {
	return http.post(`/lt-order/addOrder.do`, params).then(res => res);
};

//微信支付
export const wechatPayAPI = params => {
	return http.post(`/yjz-pay/lawtrain/wechatPay.do`, params).then(res => res);
};

// 删除评论
export const deleteMyComment = params => {
	return http.get(`/lt-order/pcDeleteLessonComment.do`, params).then(res => res);
};
//激活码激活
export const codeOrder = params => {
	return http.post(`/lt-order/codeOrder.do`, params).then(res => res);
};
//获取激活码信息
export const getSelectActivationCodeByCode = params => {
	return http.get(`/lt-order/selectActivationCodeByCode.do`, params).then(res => res);
};
//激活码直接税换
export const getDirectActivationCode = params => {
	return http.get(`/lt-order/directActivationCode.do`, params).then(res => res);
};
